package com.stock.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;

@Data
@TableName("user")
public class UserEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户名")
    @Size(max = 16, message = "用户名长度不能超过16个字符")
    private String username;

    @ApiModelProperty("密码")
    @Size(max = 16, message = "密码长度不能超过16个字符")
    private String password;

    @ApiModelProperty("积分")
    private Integer point = 0;

    @ApiModelProperty("逻辑删除")
    private Integer isDel = 0;

}
